package cn.bdqn.service;

import cn.bdqn.bean.result.Page;
import cn.bdqn.domain.Damage;
import org.springframework.transaction.annotation.Transactional;


public interface DamageService {

    public Page<Damage> queryAll(Integer startNum);

    public Page<Damage> queryByType(Integer type, Integer startNum);

    public Page<Damage> queryByName(String damageName, Integer startNum);

    public Page<Damage> queryByApplyNo(String applyNo,Integer startNum);

    public Page<Damage> querySelective(Damage damage,Integer startNum);

    @Transactional
    public void addDamage(Damage damage);

    @Transactional
    public void changeById(Damage damage);

    @Transactional
    public void removeById(Integer id);
}
